package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.ZzxxExaminationChoicequestion;
import com.ruoyi.system.mapper.ZzxxExaminationChoicequestionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.service.IZzxxExaminationChoicequestionService;

/**
 * 选择题外键表Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-06-20
 */
@Service
public class ZzxxExaminationChoicequestionServiceImpl implements IZzxxExaminationChoicequestionService 
{
    @Autowired
    private ZzxxExaminationChoicequestionMapper zzxxExaminationChoicequestionMapper;

    /**
     * 查询选择题外键表
     * 
     * @param examinationId 选择题外键表主键
     * @return 选择题外键表
     */
    @Override
    public ZzxxExaminationChoicequestion selectZzxxExaminationChoicequestionByExaminationId(Long examinationId)
    {
        return zzxxExaminationChoicequestionMapper.selectZzxxExaminationChoicequestionByExaminationId(examinationId);
    }

    /**
     * 查询选择题外键表列表
     * 
     * @param zzxxExaminationChoicequestion 选择题外键表
     * @return 选择题外键表
     */
    @Override
    public List<ZzxxExaminationChoicequestion> selectZzxxExaminationChoicequestionList(ZzxxExaminationChoicequestion zzxxExaminationChoicequestion)
    {
        return zzxxExaminationChoicequestionMapper.selectZzxxExaminationChoicequestionList(zzxxExaminationChoicequestion);
    }

    /**
     * 新增选择题外键表
     * 
     * @param zzxxExaminationChoicequestion 选择题外键表
     * @return 结果
     */
    @Override
    public int insertZzxxExaminationChoicequestion(ZzxxExaminationChoicequestion zzxxExaminationChoicequestion)
    {
        return zzxxExaminationChoicequestionMapper.insertZzxxExaminationChoicequestion(zzxxExaminationChoicequestion);
    }

    /**
     * 修改选择题外键表
     * 
     * @param zzxxExaminationChoicequestion 选择题外键表
     * @return 结果
     */
    @Override
    public int updateZzxxExaminationChoicequestion(ZzxxExaminationChoicequestion zzxxExaminationChoicequestion)
    {
        return zzxxExaminationChoicequestionMapper.updateZzxxExaminationChoicequestion(zzxxExaminationChoicequestion);
    }

    /**
     * 批量删除选择题外键表
     * 
     * @param examinationIds 需要删除的选择题外键表主键
     * @return 结果
     */
    @Override
    public int deleteZzxxExaminationChoicequestionByExaminationIds(Long[] examinationIds)
    {
        return zzxxExaminationChoicequestionMapper.deleteZzxxExaminationChoicequestionByExaminationIds(examinationIds);
    }

    /**
     * 删除选择题外键表信息
     * 
     * @param examinationId 选择题外键表主键
     * @return 结果
     */
    @Override
    public int deleteZzxxExaminationChoicequestionByExaminationId(Long examinationId)
    {
        return zzxxExaminationChoicequestionMapper.deleteZzxxExaminationChoicequestionByExaminationId(examinationId);
    }
}
